import { defineStore } from "pinia";
// 全局loading控制
export const useMyLoading = defineStore("myLoading", () => {
  const loading = ref(false);

  const changeLoading = (val: boolean) => {
    loading.value = val;
  };
  return {
    loading,
    changeLoading,
  };
});
